package com.vcredit.creditcat.persistence;

import com.vcredit.creditcat.model.LoginPreview;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by liaoshengjun on 2017/10/27.
 */
public interface LoginPreviewMapper {
	void insert(LoginPreview obj);
	void update(LoginPreview obj);
	List<LoginPreview> findAll();
	List<LoginPreview> find(LoginPreview obj);
	LoginPreview findById(Long loginPreviewId);
	List<LoginPreview> findByMobile(@Param("mobile") String mobile);
	List<Long> findUnPreviewProductByMobile(@Param("mobile") String mobile);
}
